package org.tea.inventory.model.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.tea.inventory.base.validation.groups.CreateGroup;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * 证书表
 */
@ApiModel(value = "org-alumni-record-mall-domain-MallCertificate")
@Data
@NoArgsConstructor
public class MallCertificateDto implements Serializable {
    private static final long serialVersionUID = 1L;
    @ApiModelProperty(value = "")
    private Long id;
    /**
     * 证书类型
     */
    @ApiModelProperty(value = "证书类型")
    @NotNull(message = "证书类型不能为空", groups = {CreateGroup.class})
    private Long[] type;
    /**
     * 文件ids
     */
    @ApiModelProperty(value = "文件ids")
    @NotBlank(message = "文件不能为空", groups = {CreateGroup.class})
    private String fileIds;
    /**
     * 状态 -1:删除, 0:审核中, 1:通过 2：不通过
     */
    @ApiModelProperty(value = "状态 -1:删除, 0:审核中, 1:通过 2：不通过")
    private Integer status;
    @ApiModelProperty(value = "证书名称")
    @NotNull(message = "证书名称不能为空", groups = {CreateGroup.class})
    private String title;


}